home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
program
/
ddj0897.zip
/
DYN401.ZIP
/
makefile.unx
< prev
next >
Wrap
Makefile
|
1997-04-16
|
4KB
|
108 lines
include makefile.inc
all : setup.unx
cd kernel ; $(MAKE) -f makefile.unx
cd class ; $(MAKE) -f makefile.unx
cd threads ; $(MAKE) -f makefile.unx
cd dpp ; $(MAKE) -f makefile.unx install
cd generics ; $(MAKE) -f makefile.unx
base : makegens
cd kernel ; $(MAKE) -f makefile.unx
cd class ; $(MAKE) -f makefile.unx
cd threads ; $(MAKE) -f makefile.unx
cd generics ; $(MAKE) -f makefile.unx
debug : setup.unx
cd kernel ; $(MAKE) -f makefile.unx DEBUG=1
cd class ; $(MAKE) -f makefile.unx DEBUG=1
cd threads ; $(MAKE) -f makefile.unx DEBUG=1
cd dpp ; $(MAKE) -f makefile.unx DEBUG=1 install
cd generics ; $(MAKE) -f makefile.unx DEBUG=1
clean :
cd kernel ; $(MAKE) $@ -f makefile.unx
cd class ; $(MAKE) $@ -f makefile.unx
cd threads ; $(MAKE) $@ -f makefile.unx
cd generics ; $(MAKE) $@ -f makefile.unx
cd dpp ; $(MAKE) $@ -f makefile.unx
find . -name '*~' -exec rm \{\} \;
find . -name '*.o' -exec rm \{\} \;
find . -name '*.obj' -exec rm \{\} \;
find . -name '*.tmp' -exec rm \{\} \;
find . -name '*.{*' -exec rm \{\} \;
find . -name '--linux-.---' -exec rm - \{\} \;
find examples -name '*.exe' -exec rm \{\} \;
find examples -name 'main' -exec rm \{\} \;
realclean : clean
rm -f setup.unx setup.dos
rm -f bin/{dpp,delcr,addcr}
rm -rf lib/d*
ship-unix : realclean
find . -name '*.exe' -exec rm \{\} \;
setup.unx :
@-mkdir lib
cd bin ; $(CC) -o delcr -O delcr.c
cd kernel ; ../bin/delcr makefile.unx README *.d
cd class ; ../bin/delcr makefile.unx README *.d
cd threads ; ../bin/delcr makefile.unx README *.d
cd dpp ; ../bin/delcr makefile.unx README *.d
# Times associated with .c files must be after the .d files for make's sake
sleep 2
cd kernel ; ../bin/delcr *.h *.iv *.c
cd class ; ../bin/delcr *.h *.c
cd threads ; ../bin/delcr *.c
cd dpp ; ../bin/delcr *.h *.c
cd docs ; ../bin/delcr *
cd generics ; ../bin/delcr makefile.unx README makegens mkgens3 mkgens4 mkgens4f mkgensx
cd include ; ../bin/delcr *.h
cd generics ; chmod 775 makegens mkgens3 mkgens4 mkgens4f mkgensx
find examples -name 'makefile.unx' -exec bin/delcr \{\} \;
find examples -name 'readme' -exec bin/delcr \{\} \;
find examples -name 'README' -exec bin/delcr \{\} \;
find examples -name '*.h' -exec bin/delcr \{\} \;
find examples -name '*.d' -exec bin/delcr \{\} \;
find examples -name '*.c' -exec bin/delcr \{\} \;
bin/delcr examples/list makefile.unx makefile.inc dropunx.sh
chmod 755 dropunx.sh
# find multhead -type f -exec bin/delcr \{\} \;
rm -f setup.dos
touch setup.unx
setup.dos :
cd bin ; $(CC) -o addcr -O addcr.c
cd include ; ../bin/addcr *.h
cd kernel ; ../bin/addcr README *.d *.h *.iv *.c
cd class ; ../bin/addcr README *.d *.h *.c
cd threads ; ../bin/addcr README *.d *.c
cd dpp ; ../bin/addcr README *.d *.h *.c
cd docs ; ../bin/delcr *
cd generics ; ../bin/addcr README
find examples -name 'readme' -exec bin/addcr \{\} \;
find examples -name 'README' -exec bin/addcr \{\} \;
find examples -name '*.h' -exec bin/addcr \{\} \;
find examples -name '*.d' -exec bin/addcr \{\} \;
find examples -name '*.c' -exec bin/addcr \{\} \;
bin/addcr examples/list
rm -f setup.unx
touch setup.dos
makegens:
cd kernel ; rm -f generics.* ; $(DPP) $(DPPOPTS) -h -i -s *.d ; mv generics.h ../include
cd class ; $(DPP) $(DPPOPTS) -h -i -g ../include/generics.h -s *.d ; mv generics.h ../include
cd threads ; $(DPP) $(DPPOPTS) -h -i -g ../include/generics.h -s *.d ; mv generics.h ../include
newgens : makegens
cd kernel ; $(MAKE) -f makefile.unx reallynewgens
cd class ; $(MAKE) -f makefile.unx newgens
cd threads ; $(MAKE) -f makefile.unx newgens
cd dpp ; $(MAKE) -f makefile.unx newgens ; $(MAKE) -f makefile.unx generics.c